Repository navigation
UnixUserAccount, Artifact and Object changes - #308
Merged
Merged
Conversation
…-account-and-artifact
Contributor
Author
|
This PR closes #303 |
gtback
reviewed
Nov 27, 2017
gtback
left a comment
Contributor
There was a problem hiding this comment.
A couple minor questions, but overall this looks really good!
| MIDDLE_ENDIAN = "Middle-endian" | ||
| ENDIANNESS = (BIG_ENDIAN, LITTLE_ENDIAN, MIDDLE_ENDIAN) | ||
|
|
||
| byte_order = fields.TypedField("byte_order", postset_hook=validate_byte_order_endianness) |
Contributor
There was a problem hiding this comment.
validate_byte_order_endianness can probably be a pre-set hook, since it doesn't depend on any of the other values of the instance.
| def validate_id_string(instance, value): | ||
| if value is None: | ||
| return | ||
| elif len(instance) > 2: |
Contributor
There was a problem hiding this comment.
I'm pretty sure instance will be an instance of PDFFileID, which would be fine if this was an EntityList, but we might want to use len(instance.id_string) instead. Also, I'm thinking this should be >=2, since we don't want to add another one if there are already 2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Although, this PR builds on top of #307. Therefore, I will close that PR and use this instead. The full list of changes can be tracked in that PR. Plus,
While creating the UnixUserAccount I noticed xsi:type did not contain the correct value, thus tweaking the bindings a bit.
Added Object documentation on using cybox clear cache instead of removing the caching feature.